package cn.ctyun.ipush.service;

import cn.ctyun.ipush.model.HbbtSalesHisModel;
import com.dexcoder.dal.build.Criteria;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: user
 * Date: 17-5-10
 * Time: 上午9:42
 * To change this template use File | Settings | File Templates.
 */
public interface SaleService {
    public void save(HbbtSalesHisModel hbbtSalesHisModel);
    public int delete(String hbbtSalesHisModelId);
    public int update(HbbtSalesHisModel hbbtSalesHisModel);

    public HbbtSalesHisModel querySingleResult(String hbbtSalesHisModelId);

    public List<HbbtSalesHisModel> queryList(HbbtSalesHisModel hbbtSalesHisModel);
    public List<HbbtSalesHisModel> queryAll(HbbtSalesHisModel hbbtSalesHisModel);
    public List<HbbtSalesHisModel> queryList(Criteria criteria);
    public List<HbbtSalesHisModel> queryListByPage(int currentPage, int itemPages, Criteria criteria);

    //自定义查询
    public List queryListBySql(String url, String username, String password, String sql);

}
